﻿using LY.Entity;
using LY.Entity.Entities;
using LY.Entity.PageSearch;
using LY.Entity.SearchEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.Interface
{
    public interface IClaimsService
    {
        //是否是新手
        bool IsGreenHand(string mid);

        //新手专项
        List<T_Project_EX> GetProjects(int type, int top);

        //获取所有投资项目
        PagedList<T_Project_EX> GetProjects(PageView view, InvestListSearch condition);

        //通过id获取投资项目信息
        T_Project_EX GetProjectById(string id);
        T_Project_EX GetProjects(string id); 

        //获取我的投资记录
        PagedList<T_Project_EX> GetProjectOfMine(PageView view, string id, ClaimsSearch condition);

        //投资排名前N
        List<T_Investment_EX> GetHotInvestors(int? top);

        //获取证件图片
        List<T_Document_EX> GetDocImage(string pid);

        //通过项目id获取投资金额
        decimal GetAmountsByPid(string pid);

        //统计收益
        decimal GetInvestProfits(string mid);

        //获取投资记录
        PagedList<T_Investment_EX> GetInvestors(PageView view, string pid);

        //删除失败的投资记录
        int DeleteMyInvest(string id);

        int UpdateProject(string projectId, DateTime time, int status);

        //根据投资编号获取合同信息
        T_Contract GetContractByNumber(string number);
        //添加合同
        int SaveContract(T_Contract contract);
    }
}
